home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14808 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news.mindlink.net!news
  2. From: Jan & Gord Wait <nwho@www.nwho.com>
  3. Newsgroups: comp.lang.c++,comp.lang.java
  4. Subject: Re: Java: What's the Big Deal?
  5. Date: Mon, 01 Apr 1996 20:22:11 -0800
  6. Organization: NorthWest Homes Online
  7. Message-ID: <3160AB73.6653@www.nwho.com>
  8. References: <milodDoF9JF.K32@netcom.com> <1996Mar20.154600.12011@amc.com> 
  9.         <milodDoL1uy.581@netcom.com> <4jpvus$6hu@wavefront.wavefront.com>
  10. NNTP-Posting-Host: line171.nwm.mindlink.net
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset=us-ascii
  13. Content-Transfer-Encoding: 7bit
  14. X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
  15.  
  16. Pohl Longsine wrote:
  17. > In <milodDoL1uy.581@netcom.com> John DiCamillo wrote:
  18. > > curtis@amc.com (Curtis Green) writes:
  19. > > >John DiCamillo (milod@netcom.com) wrote:
  20. > > >: pete@borland.com (Pete Becker) writes:
  21. > >
  22. > > >: >There's no reason you can't write a C++ compiler that generates a Java
  23. > > >: >bytestream.
  24. > >
  25. > > >: Are you claiming that arbitrary, correct (ANSI) C++ code can
  26. > > >: be compiled to the JVM and continue to work correctly?
  27. > Since Java is based upon a VM with an "instruction set" one could write a
  28. > compiler for any language, the output for which is the "object code" of the
  29. > VM.   (Unless there's some design flaw in the VM architecture that I'm
  30. > unaware of.)
  31. > Any compiler gurus out there that can explain why I might be wrong here?
  32. > --
  33. > pohl@screaming.org
  34. > http://mmm.screaming.org/
  35.  
  36. It might not be impossible, but it wouldn't be trivial: C and C++ support
  37. direct address pointers, that usually end up as address references in machine
  38. language (which is why C and C++ can be fast). Java won't let you get at 
  39. address pointers, so you would have to build a fake higher level memory system
  40. in java VM to support the pointers from the C ish source code.. ugghhh..
  41.